import request from '@/utils/request'

// 查询问诊列表列表
export function listConsultation(query) {
  return request({
    url: '/treatment/consultation/list',
    method: 'get',
    params: query
  })
}

// 查询问诊列表详细
export function getConsultation(id) {
  return request({
    url: '/treatment/consultation/' + id,
    method: 'get'
  })
}

// 新增问诊列表
export function addConsultation(data) {
  return request({
    url: '/treatment/consultation',
    method: 'post',
    data: data
  })
}

// 修改问诊列表
export function updateConsultation(data) {
  return request({
    url: '/treatment/consultation',
    method: 'put',
    data: data
  })
}

// 删除问诊列表
export function delConsultation(id) {
  return request({
    url: '/treatment/consultation/' + id,
    method: 'delete'
  })
}
